{include file="public/header" /}

<link rel="stylesheet" href="{$Think.PLUGINS_SITE_ROOT}/js/jquery.lightbox/css/lightbox.min.css">
<script src="{$Think.PLUGINS_SITE_ROOT}/js/jquery.lightbox/js/lightbox.min.js"></script>
<div class='page'>
    <table border="0" cellpadding="0" cellspacing="0" class="ds-default-table">
        <thead>
        <tr>
            <th colspan="6">基本信息</th>
        </tr>
        </thead>
        <tbody>
        <tr>
            <th style="width: 68px;" >商品名称：</th>
            <td style="width: 300px;"  >{$goods_info.goods_name}</td>
            <th style="width: 68px;"  >商品分类：</th>
            <td>{$goods_info.gc_name}</td>
            <th style="width: 68px;"  >商品品牌：</th>
            <td>{$goods_info.brand_name}</td>
        </tr>
        <?php if(!empty($goods_info['goods_stateremark'])&&$goods_info['goods_status']==2){  ?>
        <thead>
        <tr>
            <th colspan="6">审核意见</th>
        </tr>
        </thead>
        <tr>
            <th>未通过原因：</th>
            <td>{$goods_info.goods_stateremark}</td>
        </tr>
        <?php }else{ ?>
        <?php  }?>
    </table>

    <table border="0" cellpadding="0" cellspacing="0" class="ds-default-table">
        <thead>
        <tr>
            <th colspan="6">商品名称&规格值信息及价格：</th>
        </tr>
        </thead>
        <tr>
            <td style="width:400px;">商品名称&规格值</td>
            <td>供应商售价</td>
            <td>平台售价（提成）</td>
            <td>平台售价（加价）</td>
            <td>库存</td>
            <td>操作</td>
        </tr>
        <?php foreach($goods as $k=>$v){  ?>
        <tr>
            <td>{$v.goods_name}</td>
            <td>{$v.goods_price}</td>
            <td>{$v.t_price}</td>
            <td>{$v.g_price}</td>
            <td>{$v.goods_storage}</td>
            <td> <a href="{:url('Product/goods_setting_infos',['goods_id'=>$v.goods_id])}" class="dssc-btn dssc-btn-green" style="margin-right: 10px;" goods_name="{$v.goods_name}"><p>查看详情</p></a></td>

        </tr>
        <?php  }?>
    </table>





    <table border="0" cellpadding="0" cellspacing="0" class="ds-default-table">
        <thead>
        <tr>
            <th colspan="6">基本文件信息</th>
        </tr>
        </thead>
        <tr>
            <th style='width:80px;'>轮播图视频：</th>
            <td>
                <?php if(empty($goods_info['videos'])){ ?>
                暂无视频
            <th></th>

            <?php }else{ ?>

            <video width="300" height="180" controls>
                <source src="{$http_name}/{$goods_info.videos}" type="video/mp4">
            </video>
            <th></th>
            <?php  }?>
            </td>
        </tr>
    </table>
    <table border="0" cellpadding="0" cellspacing="0" class="ds-default-table">
        <tr>
            <th style='width:80px;'>商品图片：</th>
            <td>
                <?php if(empty($goods_img)){ ?>
                暂无图片
            <th></th>

            <?php }else{ ?>

            {foreach name="goods_img" item="val" }
            <img src="{$http_name}/{$val.goodsimage_url}" width="120" height="120" />
            {/foreach}
            <?php  }?>
            </td>
        </tr>
        </tbody>
    </table>
</div>

<script>
    //查看详情
    function goods_setting_info(ids_str,goods_name) {

        _uri = ADMINSITEURL + "/Product/goods_setting_infos?goods_id=" + ids_str;
        dsLayerOpen(_uri, goods_name, '1000px', '480px');
    }
</script>